package com.entity;

import java.sql.Date;
import java.util.ArrayList;


public class Order implements Cloneable{
    private String orderId;
    private Date orderTime;
    private Address address;
    private ArrayList<Commodity> productDetails;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public ArrayList<Commodity> getProductDetails() {
        return productDetails;
    }

    public void setProductDetails(ArrayList<Commodity> productDetails) {
        this.productDetails = productDetails;
    }

    @Override
    public Order clone() throws CloneNotSupportedException {
        return (Order) super.clone();
    }
}
